// 
import {get, post} from '../utils/http.js'

// 用户登录
export const login = (params) => post(
	'api/v1/token', params
)

export const checkToken = (params) => post(
	"api/v1/token/info", params
)

// 用户注册
export const register = (params) => post(
	'api/v1/client/register', params
)

// 获取我的收藏记录
export const getCollectRecords = () => get(
	''
)
// 提交一个收藏记录
export const saveCollectRecord = (params) => post(
	'', params
)

// 获取我的阅读记录
export const getReadRecords = () => get(
	''
)
// 提交一条阅读记录
export const saveReadRecords = (params) => post(
	'', params
)


// 获取我的评论记录
export const getSayRecords = () => get(
	''
)
// 提交一条评论记录
export const saveSayRecords = (params) => post(
	'', params
)